package com.cn.springcloudshop.service.inter;

import com.cn.springcloudshop.model.YmShopOrder;
import com.cn.springcloudshop.model.YmShopOrderProduct;
import com.cn.springcloudshop.model.YmShopOrderProductExample;
import com.cn.springcloudshop.model.YmShopProduct;

import java.util.List;

/**
 * @Author: wuyanzu
 * @Date: 2018/8/1
 */
public interface OrderProductService {
    /**
    *
    * 创建订单商品中间表信息
    * @author wuyanzu
    * @date 2018/8/1 10:39
    * @param [record]
    * @return int
    */
    int insert(Long productNum,Long orderId, YmShopProduct product,Long payType);

    /**
    *
    * 选择性创建订单商品中间表信息
    * @author wuyanzu
    * @date 2018/8/1 10:40
    * @param [record]
    * @return int
    */
    int insertSelective(YmShopOrderProduct record);

    /**
    *
    * 条件查询
    * @author wuyanzu
    * @date 2018/8/1 10:40
    * @param [example]
    * @return java.util.List<com.cn.springcloudshop.model.YmShopOrderProduct>
    */
    List<YmShopOrderProduct> selectByExample(YmShopOrderProductExample example);

    /**
    *
    * 根据主键查询
    * @author wuyanzu
    * @date 2018/8/1 10:41
    * @param [id]
    * @return com.cn.springcloudshop.model.YmShopOrderProduct
    */
    YmShopOrderProduct selectByPrimaryKey(Long id);

    /**
    *
    * 选择性跟新信息
    * @author wuyanzu
    * @date 2018/8/1 10:41
    * @param [record]
    * @return int
    */
    int updateByPrimaryKeySelective(YmShopOrderProduct record);

    /**
    *
    * 更新
    * @author wuyanzu
    * @date 2018/8/1 10:41
    * @param [record]
    * @return int
    */
    int updateByPrimaryKey(YmShopOrderProduct record);

    /**
    *
    * 删除信息
    * @author wuyanzu
    * @date 2018/8/24 10:55
    * @param [id]
    * @return int
    */
    int deleteByPrimaryKey(YmShopOrderProductExample example);
}
